﻿namespace Arms.Persistence.Modules.Products.Mappings
{
    using Arms.Domain.Modules.Products;
    using System.Data.Entity.ModelConfiguration;

    internal class ProductSubClassMap : EntityTypeConfiguration<ProductSubClass>
    {
        public ProductSubClassMap()
            : base()
        {
            HasMany(x => x.Products).WithOptional(x => x.ProductSubClass).HasForeignKey(x => x.ProductSubClassID);
        }
    }
}
